From 573e20d4bcf7a3ef7d33c44dad3447212856940f Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Fri, 2 Mar 2007 14:57:18 +0000 Subject: [PATCH] xend: Catch VmError exception when creating a domain and do appropriate cleanup. Signed-off-by: Masaki Kanno --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index ddb173b65a..ca77f9951b 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1503,7 +1503,7 @@ class XendDomainInfo: self.info['start_time'] = time.time() self._stateSet(DOM_STATE_RUNNING) - except RuntimeError, exn: + except (RuntimeError, VmError), exn: log.exception("XendDomainInfo.initDomain: exception occurred") self.image.cleanupBootloading() raise VmError(str(exn)) -- 2.30.2